package com.server.llh.llhserverwork.adapter.base;

import android.view.LayoutInflater;
import android.view.View;

import com.server.llh.llhserverwork.port.HolderOnclickInterface;


public abstract class ViewHolderBase<T> {

    protected int mPosition = -1;
    protected View mCurrentView;

    public void setItemData(int position, View view) {
        mPosition = position;
        mCurrentView = view;
    }

    public abstract View createView(LayoutInflater layoutInflater);
    public abstract void showData(int position, T itemData);

    public abstract void showData(int position, T itemData, HolderOnclickInterface holderOnclickInterface);

}